package com.syni.mdd.yhd.common.all.config;

import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import com.fasterxml.jackson.databind.module.SimpleModule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpInputMessage;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.HttpMessageNotReadableException;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.io.IOException;
import java.lang.reflect.Type;
import java.util.List;

/**
 * @className MySelfRequestBodyConfig
 * @description TOO
 * @Author cfx
 * @DATE 2019/8/3 11:35
 * @VERSION 1.0
 **/
//@Configuration
public class SelfRequestBodyConfig implements WebMvcConfigurer {
    @Override
    public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
        //converters.add(mappingJackson2HttpMessageConverter());
    }

    /*@Bean
    public MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter () {
        My mappingJackson2HttpMessageConverter = new My();
        return mappingJackson2HttpMessageConverter;
    }*/
}
